package com.cj.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 附件信息表
 * </p>
 *
 * @author yangh73
 * @since 2021-01-10
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BusAccessoryEntity对象", description="附件信息表")
@TableName("bus_accessory")
public class BusAccessoryEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "附件id")
    @TableId(value = "accessory_id", type = IdType.INPUT)
    private Long accessoryId;

    @ApiModelProperty(value = "附件类型")
    private String accessoryType;

    @ApiModelProperty(value = "附件名称")
    private String accessoryName;

    @ApiModelProperty(value = "附件地址")
    private String address;

    @ApiModelProperty(value = "附件大小")
    private Double size;

    @ApiModelProperty(value = "上传时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "附件关联id")
    private Long relevancyId;

    @ApiModelProperty(value = "附件关联类型（新闻/资源/资源需求/企业明细/公共文档等）")
    private String relevancyType;


}
